print("澳洲首席美女荷官在线发牌！")
user = input("username：")
pwd = input("password:")
f = open("userinfo", "a+", encoding="utf-8")
f.seek(0)
for i in f:
    file_user, file_pwd = i.split(":")
    if user == file_user:
        print("用户已存在")
        break
else:
    f.write(f"{user}:{pwd}\n")
    print("注册成功！")
